package com.huluobo.a2203kotlinshopping.utils

import android.widget.ImageView
import androidx.databinding.BindingAdapter

/**
 *  Created by LC on 2024/6/25.
 */
object ImageBindAdapter {
    @BindingAdapter("bindImageUrl")
    @JvmStatic
    fun loadImage(view: ImageView, url: String?) {
        if (url != null) {
            ImageUtils.loadImage(view.context, url, view)
        }
    }
}